package com.nineclock.api.document;

import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import com.nineclock.document.dto.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api(value = "APP文件管理接口", tags = "文档服务", description = "文档管理")
public interface AppDocumentControllerApi {

    @ApiOperation(value = "查询当前文件夹下的子文件夹及文件列表")
    public Result<DocumentDto> listFolderAndFile(Long parentFoldId);

    @ApiOperation(value = "创建文件夹")
    public Result insertFolder(DocFolderDto folderDto);

    @ApiOperation(value = "根据ID查询文档")
    public Result<DocFileDto> getFileByFileId(Long id);

    @ApiOperation(value = "根据文档ID查询协作者")
    public Result<PageResult<DocumentUserDTO>> pagingCollaborations(Long fileId, Integer page, Integer pageSize);

    @ApiOperation(value = "根据文件ID获取用户列表")
    public Result<List<DocUserCollaborationDTO>> pageUsers(Long id);
}
